package com.atlzk.group.tgou.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.sql.ResultSet;

/**
 * @author King
 * @date 2021/6/29 - 10:58
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public  class ResultMsg {
    private Boolean flag;
    private String msg;

    public static ResultMsg success( String msg) {
        return new ResultMsg(true, msg);
    }

    public static ResultMsg erro( String msg) {
        return new ResultMsg(false, msg);
    }

}
